@extends('admin.common.app')
@section('cont')
    <section class="Hui-article-box">
        <nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
            <span class="c-gray en">&gt;</span>管理员中心
            <span class="c-gray en">&gt;</span>给角色分配权限
            <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px"
               href="javascript:location.replace(location.href);" title="刷新">
                <i class="Hui-iconfont">&#xe68f;</i>
            </a>
        </nav>
        <article class="cl pd-20">
            <form action="{{ route('admin.role.node',$role) }}" method="post" class="form form-horizontal"
                  id="form-admin-add">
                @csrf
                @foreach($nodeAll as $itme)
               <div>
                   <input type="checkbox" name="node[]" value="{{$itme['id']}}"
                   @if(in_array($itme['id'],$nodes)) checked @endif
                   >
                   {{$itme['html']}}{{$itme['name']}}
               </div>
                @endforeach

                <div class="row cl">
                    <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
                        <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;分配权限&nbsp;&nbsp;">
                    </div>
                </div>
            </form>
        </article>
    </section>
@endsection
@section('js')

@endsection
